 //******************************************************************
 // CarTest.java        Author:20172323wyh
 //******************************************************************
 public class CarTest
 {
    public static void main(String[] args)
    {
       Car car1 = new Car("PiLiHuo", "swm1", 2005);
       Car car2 = new Car("JiXianFeng", "Lifan", 1999);
       Car car3 = new Car("Panda", "bwm", 1949);

       System.out.println("Car1 is a antique car: " + car1.isAntique());
       System.out.println("Car2 is a antique car: " + car2.isAntique());
       System.out.println("Car3 is a antique car: " + car3.isAntique());

       System.out.println();
       System.out.println(car1);
       System.out.println(car2);
       System.out.println(car3);
    }
 }
